home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / disk / cache / SmartDiskZeus.lha / dl / SmartDisk131 / ReadMe next >
Encoding:
Text File  |  1994-01-19  |  3.8 KB  |  100 lines

  1. *********************************************************************
  2.  
  3. Note: this version is fixed to work with the PPS Zeus '040 card for
  4. the 2000.  The fix is simply to update and return the proper io_Error
  5. code (0 if no error exists).  Previously, this code failed to do this
  6. (mode cache codes fail to do this!) which results in problems for the
  7. Zeus.  This code should have no problems working with any other 
  8. controller cards as well.
  9.  
  10. This code has been recompiled with SASC 6.3.
  11.  
  12. Any questions about this fix can be directed to me.  Questions about
  13. the original cache software must be directed to to the original 
  14. author of this code.
  15.  
  16. David Walthour
  17. walthour@dartmouth.edu
  18.  
  19. *********************************************************************
  20.  
  21. This is SmartDisk1.3.1, written by David Le Blanc.
  22.  
  23. It is an '8-Way set associative' cache, with 8 sets, lines of 4 sectors with
  24. prefetch, and 32 lines. If you under stand cache jargon, then you'd know that
  25. adds up to:
  26.  
  27. 32*4*8*512 = 524288 or 512K and sectors are 'prefetched' four at a time.
  28.  
  29. The frefetch strips time of program loading and directories. It may 
  30. work against you on a heavily fragmented disk, but there is a general
  31. noticable gain in performance EVEN when the data you want is not in
  32. the cache.
  33.  
  34. So, this cache uses 512k, which gets allocated as the cache expands.
  35. There are a few limitations, but thats only because all parameters are
  36. hard coded into the source.
  37.  
  38. | Since you cannot specify the type of drive you have, there are three versions
  39. | in the archive.
  40.  
  41. | SmartDisk.xt      : Any xt.device user (A590 xt/ide drive)
  42. | SmartDisk.scsi    : Any scsi.device user, (a590 scsi, A2091 etc)
  43. | SmartDisk.gvpscsi : Any gvpscsi.device user, namely all GVP controllers.
  44. ^ Obsolete.
  45.  
  46. Arguments:
  47.  
  48. SmartDisk <devicename> <unit>
  49.  
  50. ******** ******** ******** ******** ******** ******** ******** ********
  51.  
  52. I Must put a note in here to warn users with multiple drives. THIS
  53. PROGRAM WILL FAIL on a system which uses the same device (eg scsi.device)
  54. for many physical units. The reason is that it patches the device 'BeginIO'
  55. vector, effectively catching calls to read ANY unit, but it does not
  56. internally differentiate amongst different devices. The reason is simple,
  57. there is not indication of the 'unit' in the IOStdReq structure. 
  58.  
  59. (There is a 'Unit' pointer but that is device private and I'd be stupid
  60. to depend on it :-)
  61.  
  62. The effect is that if a read from unit 1 gets cached, the same read to 
  63. unit 0 may grab an entry from the cache which actually came from unit
  64. 1! (can you spell BOOM!!) 
  65.  
  66. BE WARNED!
  67.  
  68. ******** ******** ******** ******** ******** ******** ******** ********
  69.  
  70.  
  71.  * SmartDisk 1.3.1 
  72.  * 
  73.  * Added code to grab device and unit from the command line.
  74.  * Removed 2.0 dependent code which had crept in. (CreateMsgPort() instead of
  75.  * CreatePort() for example)
  76.  *
  77.  * SmartDisk 1.3.
  78.  *
  79.  * Created by David Le Blanc 29/10/91 Absolutely no copywrite. But if you improve
  80.  * it, please send me a new version (with source!) 
  81.  * 
  82.  * Some performance quotes: (Doesn't everyone make these??)
  83.  * Background:  I have a directory called MAN: which has 355 manuals.
  84.  *
  85.  * WARNING: These are bad examples, since a 'dir' reads the disk, then sorts the
  86.  * contents, then writes the data to the screen. These times include the sorting
  87.  * and output of the directory. This sorting and output time is in the order
  88.  * of 1.5 to 2 seconds.
  89.  *
  90.  * Normal DIR MAN:        12 seconds
  91.  * Cache enabled but empty      9  seconds (prefetch does work!) 
  92.  * Cache primed                 5  seconds.
  93.  *
  94.  * With a slower drive and/or faster machine these times can only improve.
  95.  * I have a drive capable of 800k/sec on my unaccelerated A500. Those with
  96.  * a 150K/sec A590 would notice a greater performance boost. Same for those
  97.  * with 'bloody fast machines' (grumble :) If I was REALLY worried about making
  98.  * the statistic look good, then I'd test it on an A590.
  99.  *
  100.